/*
 * @Description:
 * @Author: wangyan
 * @Date: 2021-02-23 18:32:06
 * @LastEditTime: 2021-02-23 18:35:00
 * @LastEditors: Please set LastEditors
 */
import { createI18n } from 'vue-i18n'		//引入vue-i18n组件
import ch from "./ch";
import en from "./en";
import enLocale from 'element-plus/lib/locale/lang/en'
import zhLocale from 'element-plus/lib/locale/lang/zh-cn'

//注册i8n实例并引入语言文件
const i18n_process = createI18n({
  locale: 'zh-cn',		//默认显示的语言 
  size: 'small',
  messages: {
    'zh-cn': {
      ...ch,
      el: zhLocale.el,
    },
    en: {
      ...en,
      el: enLocale.el
    }
  }
})
export default i18n_process
